package com.yunzheng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author 郭思良
 * @create 2020-07-23 15:38
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "project_plan")
public class ProjectPlan implements Serializable {
    /**
     * 项目计划的id
     */
    @TableId(value = "plan_id", type = IdType.INPUT)
    private String planId;

    /**
     * 所属项目的id
     */
    @TableField(value = "project_id")
    private String projectId;

    /**
     * 计划阶段名
     */
    @TableField(value = "plan_name")
    private String planName;

    @TableField(value = "plan_start")
    private LocalDateTime planStart;

    @TableField(value = "plan_end")
    private LocalDateTime planEnd;

    @TableField(value = "sort")
    private Integer sort;

    @TableField(value = "progress")
    private Double progress;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_PLAN_ID = "plan_id";

    public static final String COL_PROJECT_ID = "project_id";

    public static final String COL_PLAN_NAME = "plan_name";

    public static final String COL_PLAN_START = "plan_start";

    public static final String COL_PLAN_END = "plan_end";

    public static final String COL_SORT = "sort";

    public static final String COL_PROGRESS = "progress";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}
